import 'reflect-metadata';
import './boot';
import './util/object.extension';
import { llog } from './util/logger';

let role = process.env.ROLE;
if (role == 'UserServer') {
	import('./userserver/umain').then(mod => {
		mod.startUserServer();
	});
} else if (role == 'SyncServer') {
	import('./syncserver/smain').then(mod => {
		mod.startSyncServer();
	});
} else {
	llog('server role must be set!');
}
